package com.sxdx.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sxdx.entity.Book;

/**
 * <p>
 *
 * </p>
 *
 * @author 靳杰
 * @since 2023-12-21
 */
public class BookDto {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @TableId(value = "uuid", type = IdType.NONE)
    private String uuid;

    /**
     * 书名
     */
    private String name;

    /**
     * 作者
     */
    private String author;

    /**
     * 出版社
     */
    private String publish;

    private String isbn;

    /**
     * 介绍
     */
    private String introduction;

    /**
     * 语言
     */
    private String language;

    /**
     * 状态（0，在库1，1外借）
     */
    private Integer state;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 图片地址
     */
    private String url;

    /**
     * 分类id
     */
    private Integer categoryId;

    /**
     * 书架位置
     */
    private String location;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }
    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }
    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }
    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }
    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "Book{" +
                "uuid=" + uuid +
                ", name=" + name +
                ", author=" + author +
                ", publish=" + publish +
                ", isbn=" + isbn +
                ", introduction=" + introduction +
                ", language=" + language +
                ", state=" + state +
                ", number=" + number +
                ", url=" + url +
                ", categoryId=" + categoryId +
                ", location=" + location +
                "}";
    }
}
